@layout("/template/container.html",{bg:"bg-white",js:["/js/module/common/dataTemplate/add.js"]}){
<button class="layui-btn layui-btn-warm layui-btn-fluid" onclick="system.useTemplate('formContainer')">选择模板</button>

<form id="formContainer" lay-filter="formContainer" class="layui-form model-form">
    <div class="layui-form-item">
        <label class="layui-form-label">标题<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="title" placeholder="模板标题" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">标签</label>
        <div class="layui-input-block">
            <input name="sign" placeholder="标签" type="text" class="layui-input"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">内容<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <textarea rows="18" name="content" class="layui-textarea" lay-verify="required" required>json字符串,示例：{"id": 1 ,"name" : "jack"}</textarea>
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}